package com.xd.pre.modules.tpshop.virtuaBean;

import lombok.Data;

@Data
public class CouponVirtual { // for app SPCoupon.java

    //  			"couponList"(json)
    String couponID;    //["id"]        `tp_coupon_list`.`couponlist_id` 优惠券表ID
    String type;        //["type"]      `tp_coupon_list`.`type`-发放类型 1 按订单发放 2 注册 3 邀请 4 按用户发放  //##先以这个为准吧
    String userID;      //["uid"]       `tp_coupon_list`.`user_id` - 用户ID
    String orderID;     //["order_id"]  `tp_coupon_list`.`order_id`- 订单ID                                                       // app 没用到
    String useTime;     //["use_time"]  `tp_coupon_list`.`use_time`-使用时间
    String code;        //["code"]      `tp_coupon_list`.`code`    -优惠券兑换码
    String sendTime;    //[]            `tp_coupon_list`.`send_time`-发放时间

    String useEndTime;  //[]            `tp_coupon`.`use_end_time`  -过期时间
    String typeID;      //["cid"]       `tp_coupon`.`coupon_id`- 优惠券类型表ID                                  // app 没用到
    String name;        //["name"]      `tp_coupon`.`name`    -优惠券名称
    String money;       //["money"]     `tp_coupon`.`money`   -优惠券金额(面值金额)
    String condition;   //["condition"] `tp_coupon`.`condition`-使用条件

    public CouponVirtual() {
        super();
        // TODO Auto-generated constructor stub
    }

    public CouponVirtual(String couponID, String type, String userID,
                         String orderID, String useTime, String code, String sendTime,
                         String useEndTime, String typeID, String name, String money,
                         String condition) {
        super();
        this.couponID = couponID;
        this.type = type;
        this.userID = userID;
        this.orderID = orderID;
        this.useTime = useTime;
        this.code = code;
        this.sendTime = sendTime;
        this.useEndTime = useEndTime;
        this.typeID = typeID;
        this.name = name;
        this.money = money;
        this.condition = condition;
    }


}
